/*
========================================================================
 Name        : DrmAudioPlayerContainerView.h
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef DRMAUDIOPLAYERCONTAINERVIEW_H
#define DRMAUDIOPLAYERCONTAINERVIEW_H


#include <aknview.h>
#include "AacPlayer.h"


class CDrmAudioPlayerContainer;

/**
 * Avkon view class for DrmAudioPlayerContainerView. It is register with the view server
 * by the AppUi. It owns the container control.
 * @class	CDrmAudioPlayerContainerView DrmAudioPlayerContainerView.h
 */						
			
class CDrmAudioPlayerContainerView : public CAknView
	{

public:
	// constructors and destructor
	CDrmAudioPlayerContainerView();
	static CDrmAudioPlayerContainerView* NewL();
	static CDrmAudioPlayerContainerView* NewLC();        
	void ConstructL();
	virtual ~CDrmAudioPlayerContainerView();
						
	// from base class CAknView
	TUid Id() const;
	void HandleCommandL( TInt aCommand );
	
	CDrmAudioPlayerContainer* CreateContainerL();
	
protected:
	// from base class CAknView
	void DoActivateL(
		const TVwsViewId& aPrevViewId,
		TUid aCustomMessageId,
		const TDesC8& aCustomMessage );
	void DoDeactivate();
	void HandleStatusPaneSizeChange();

private:
	void SetupStatusPaneL();
	void CleanupStatusPane();

private:
    // Own: control container
	CDrmAudioPlayerContainer* iDrmAudioPlayerContainer;
	// Own: audio player
	CAacPlayer* iPlayer;
	
	};

#endif // DRMAUDIOPLAYERCONTAINERVIEW_H
